export default {
  distributePage(data) {
    return {
      name: '配货列表',
      url: '/mall/distribution/page',
      method: 'post',
      data
    }
  },
  distributeDetails(id) {
    return {
      name: '配货详情',
      url: `/mall/distribution/getDetailById/${id}`,
      method: 'get',
    }
  },
  parcelSave(data) {
    return {
      name: '订单包裹生成',
      url: `/mall/distribution/parcelSave/${data.distributionOrderId}`,
      method: 'post',
      data: data.list
    }
  },
  distribution(id) {
    return {
      name: '获取配货包裹详细',
      url: `/mall/distribution/getParcelById/${id}`,
      method: 'get',
    }
  },
  distributionComment(data){
    return {
      name: '包裹备注',
      url: `/mall/distribution/comment`,
      method: 'post',
      data: data
    }
  },
  distributionOk(data){
    return {
      name: '订单包裹生成',
      url: `/mall/distribution/packFinish/${data.distributionOrderId}`,
      method: 'post',
      data: data.list
    }
  },
  getDistributeStatistical(data){
    return {
      name: '数量统计',
      url: `/mall/distribution/getDistributionStatistical/${data}`,
      method: 'post',
      data: data
    }
  },
  getTenantList(data){
    return {
      name: '数量统计',
      url: `/mall/distribution/getTenantList/${data.state}`,
      method: 'post',
      data: data
    }
  },
  unPackFinish(distributionOrderId){
    return {
      name: '取消配货',
      url: `/mall/distribution/unPackFinish/${distributionOrderId}`,
      method: 'post',
      data: distributionOrderId
    }
  },
  printDeliveryList(ids){
    return {
      name: '打印出库清单',
      url: `/mall/distribution/printDeliveryList/${ids}`,
      method: 'post',
      data: ids
    }
  },
  
}
